package upload

import (
	"hft/global"
	"mime/multipart"
)

// OSS 对象存储接口
type OSS interface {
	UploadFile(file *multipart.FileHeader, ossFilename string) (string, string, error)
	DeleteFile(keys []string) error
}

// NewOss OSS的实例化方法
func NewOss() OSS {
	switch global.OC_CONFIG.System.OssType {
	// case "local":
	// 	return &Local{}
	case "aliyun-oss":
		return &AliyunOSS{}
	default:
		return &AliyunOSS{}
	}
}
